// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 

package com.nnee.p_pr.p_activity.p_view;

import android.widget.Scroller;

// Referenced classes of package com.nnee.p_pr.p_activity.view:
//            NPullToRefreshListView, j

class bk
    implements Runnable
{

    public bk(NPullToRefreshListView npulltorefreshlistview)
    {
        a = npulltorefreshlistview;
        super();
        d = new Scroller(npulltorefreshlistview.getContext());
    }

    private void a()
    {
        a.removeCallbacks(this);
    }

    public void a(int i, int k)
    {
        a();
        c = 0;
        d.startScroll(0, 0, i, 0, k);
        NPullToRefreshListView.a(a, true);
        a.post(this);
    }

    public void run()
    {
        if(!d.computeScrollOffset()) goto _L2; else goto _L1
_L1:
        e = e + (c - d.getCurrX());
        a.setSelectionFromTop(0, e);
        c = d.getCurrX();
        a.removeCallbacks(this);
        a.post(this);
_L4:
        return;
_L2:
        NPullToRefreshListView.a(a, false);
        if(NPullToRefreshListView.a(a) != null)
            NPullToRefreshListView.a(a).a();
        if(true) goto _L4; else goto _L3
_L3:
    }

    final NPullToRefreshListView a;
    private boolean b;
    private int c;
    private Scroller d;
    private int e;
}
